<template>
  <div class="goodInfo_get">
    <div class="title fff">
      <img src="@/assets/logo.jpg" alt="">
      宏香馨商城
      <span>[茶样领取]</span>
    </div>
    <div class="goodInfo-wrap">
      <div class="goodInfo">
        <img :src="info.image" alt="">
        <div class="textInfo">
          <h5 class="goodName">{{ info.name }}</h5>
          <p class="taocanIndex">{{ info.package[1].name }}</p>
          <p>每人限领一份</p>
          <div class="bottom_text">
            <span class="price">￥{{ is_share==='yes'? info.package[1].discount_price:info.package[1].price }}&nbsp;&nbsp;(快递费用)</span>
            <span class="places">×1</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
    };
  },
  props: ['info','is_share'],
  created() {
    
  },
  methods: {
    
  }
};
</script>

<style lang="scss" scoped>
@import '@/style/base.scss';
.goodInfo_get {
  .title {
    height: to(68);
    line-height: to(68);
    padding: 0 to(18);
    img {
      width: to(23);
      vertical-align: middle;
      margin-right: to(4);
      border-radius: 50%;
    }
    font-size: to(23);
    color: #505050;
    span {
      float: right;
      color: #FF4E00;
    }
  }
  .goodInfo-wrap {
    padding: to(15) to(18);
    height: to(185);
    background-color: #f3f3f3;
    .goodInfo {
      width: 100%;
      height: 100%;
      position: relative;
      img {
        width: to(124);
        height: to(124);
      }
      .textInfo {
        position: absolute;
        width: 100%;
        padding-left: to(141);
        top: 0;
        right: 0;
        height: 100%;
        h5 {
          margin: 0;
          font-size: to(27);
          line-height: to(45);
        }
        p {
          margin: 0;
          font-size: to(22);
          color: #8e8d8d;
          line-height: to(45);
        }
        .bottom_text {
          height: to(30);
          line-height: to(40);
          span {
            font-size: to(22);
            line-height: to(30);
            // vertical-align: bottom;
            &.places {
              float: right;
            }
            &.price {
              color: #aa0000;
              font-size: to(27);
              float: left;
            }
          }
        }
      }
    }
  }
}
</style>

